A pin occurs when a piece is under attack and cannot move without exposing a more valuable piece to capture. An absolute pin occurs when it would be illegal to move the attacked piece because of a check. A relative pin occurs when it would be inadvisable to move the attacked piece because a more valuable piece lies behind it.